package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

/**
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【员工标签】对象")
@Data
public class EmpTagDTO extends BaseDTO {

    @ApiModelProperty(value = "标签名称")
    @NotNull(message = "标签名称不能为空")
    @Length(max = 50, message = "最大长度50")
    private String tagName;

    @ApiModelProperty(value = "用工单位id")
    @NotNull(message = "用工单位id不能为空")
    private String companyId;
}
